// 统一请求路径前缀在libs/axios.js中修改
import { getRequest, postRequest, postBodyRequest, getNoAuthRequest, exportPost } from '@/libs/axios';
//行业接口
export const getindustryAPI = params => {
    return getRequest('/dictData/getByType/industry', params);
};

//获取双选会信息
export const getShowAPI = params => {
    return postRequest('/school/doubleElection/show', params);
};
//发布双选会 保存
export const saveForReviewAPI = params => {
    return postRequest('/school/doubleElection/add', params);
};
//发布双选会
export const publishAPI = params => {
    return postRequest('/school/doubleElection/publish', params);
};
//是否发布双选会按钮
export const ispublishAPI = params => {
    return postRequest('/school/doubleElection/updatepublish', params);
};

//双选会公示
export const publicityAPI = params => {
    return postRequest('/school/doubleElection/groupMessaging', params);
};
export const contentQueryAPI = params => {
    return postRequest('/school/doubleElection/getByPage', params);
};
//展位分配
export const getBoothPageAPI = params => {
    return postRequest('/school/doubleElection/getBoothPage', params);
};
//单个展位分配
export const assignBoothAPI = params => {
    return postRequest('/school/doubleElection/assignBooth', params);
};
//签到管理  学生签到
export const getStudentCheckInAPI = params => {
    return postRequest('/double/stuSignIn/queryPage', params);
};
//签到管理  企业签到
export const getCompanyCheckInAPI = params => {
    return postRequest('/double/unitSignIn/queryPage', params);
};
//招聘简章审核
export const getRecruitmentBrochureAPI = params => {
    return postRequest('/recruit/pageRecruitInfo', params);
};
//招聘简章置顶
export const recruitmentBrochureAtTheTopAPI = params => {
    return postRequest('/recruit/top', params);
};
//查看招聘简章详情--简章详情
export const getDetailsAPI = params => {
    return postRequest('/recruit/getRecruitBroContent', params);
};
//查看招聘简章详情--简章内容
export const getContentDetailsAPI = params => {
    return postRequest('/recruit/getRecruitBroBriefly', params);
};
//查看招聘简章详情--审核情况
export const getStatusDetailsAPI = params => {
    return postRequest('/recruit/getReviewStatus', params);
};
//提交审核
export const submitForReviewAPI = params => {
    return postRequest('/recruit/audit', params);
};
//简历管理
export const resumeRecommendationAPI = params => {
    return postRequest('/recommed/getByCondition', params);
};
//获取全部企业名称
export const getAllEnterpriseAPI = params => {
    return postRequest('/recommed/getAllEnterprise', params);
};
//向企业推荐人才
export const insertBioForEnterpriseAPI = params => {
    return postRequest('/recommed/insertBioForEnterprise', params);
};
//用人单位
export const employerAPI = params => {
    return postRequest('/enterpriseAudit/getByCondition', params);
};
//获取企业审核记录
export const getRequestRecordAPI = params => {
    return postRequest('/enterpriseAuditDetails/requestRecord', params);
};
//查询场地
export const getAllPlaceAPI = () => {
    return postRequest('/school/shVenue/getAll');
};
//删除一条双选会
export const deleteMutualSelectionAPI = params => {
    return postRequest('/school/doubleElection/delete', params);
};
//职位审核详情
export const getJobDetailsAPI = params => {
    return postRequest('/positionAuditDetails/getDetails', params);
};
//获取企业证明信息
export const getAuditProveDetailsAPI = params => {
    return postRequest('/positionAuditDetails/getAuditDetails', params);
};
//提交职位审核
export const submitForJobReviewAPI = params => {
    return postRequest('/positionAuditDetails/pass', params);
};
//职位审核
export const jobExportAPI = params => {
    return postRequest('/positionAudit/export', params);
};
//单位确认签到
export const unitSignInAPI = params => {
    return postRequest('/double/unitSignIn/signIn', params);
};
//单位批量确认签到
export const unitsSignInAPI = params => {
    return postRequest('/double/unitSignIn/batchSignIn', params);
};
//单位取消签到
export const unitNoSignInAPI = params => {
    return postRequest('/double/unitSignIn/noSignIn', params);
};
//单位批量取消签到
export const unitsNoSignInAPI = params => {
    return postRequest('/double/unitSignIn/batchNoSignIn', params);
};
//学生确认签到
export const stuSignInAPI = params => {
    return postRequest('/double/stuSignIn/signIn', params);
};
//学生批量确认签到
export const stusSignInAPI = params => {
    return postRequest('/double/stuSignIn/batchSignIn', params);
};
//学生取消签到
export const stuNoSignInAPI = params => {
    return postRequest('/double/stuSignIn/noSignIn', params);
};
//学生批量取消签到
export const stusNoSignInAPI = params => {
    return postRequest('/double/stuSignIn/batchNoSignIn', params);
};
//单位签到码
export const generateQRCodeAPI = () => {
    return postRequest('/double/unitSignIn/generateQRCode', { responseType: 'blob' });
};
// region TODO 校级用人单位审核详情页
//获取企业参与过的活动
export const pageActivitiesAPI = params => {
    return postRequest('/enterpriseAuditDetails/pageActivities', params);
};
//获取企业在招职位
export const getPositionsAPI = params => {
    return postRequest('/enterpriseAuditDetails/pagePositions', params);
};
//获取企业详情
export const getPositionsDetailsAPI = params => {
    return postRequest('/enterpriseAuditDetails/getDetails', params);
};
//获取双选会企业证明信息
export const getPositionsProveAPI = params => {
    return postRequest('/enterpriseAuditDetails/getAuditDetails', params);
};
//获取高校入驻企业证明信息
export const getAuditDetailsNewAPI = params => {
    return postRequest('/enterpriseAuditDetails/getAuditDetailsNew', params);
};
//提交审核
export const auditEnterpriseAPI = params => {
    return postRequest('/enterpriseAuditDetails/pass', params);
};
// endregion
// region TODO 企业服务
//获取全部企业服务生源信息
export const getAllEpStuSourceInfoAPI = () => {
    return postRequest('/province/EpStuSourceInfo/getAll');
};
// endregion
//展位分配 获取单位、展位数量
export const getTotalAPI = params => {
    return postRequest('/school/doubleElection/getTotal', params);
};
//双选会置顶
export const topAPI = params => {
    return postRequest('/school/doubleElection/top', params);
};
//小程序码/链接
export const qrCodeAndUrlAPI = params => {
    return postRequest('/school/doubleElection/qrCodeAndUrl', params);
};
//发送邀请函
export const sendInvitationsAPI = params => {
    return postRequest('/school/doubleElection/sendInvitations', params);
};
//生源异动状态查询
export const searchByStatusAPI = params => {
    return postRequest('/bysXjCompare/getByStatus', params);
};
//生源信息查询（根据学校和专业）
export const searchByCollegeAndProfessionAPI = params => {
    return getRequest('/province/EpStuSourceInfo/searchByCollegeAndProfession', params);
};
//根据年份 表名查询生源信息
export const getByYearAndNameAPI = params => {
    return getRequest('/province/EpStuSourceInfo/ByYearAndName', params);
};
//查询对应表的学校下拉框
export const getTheSchoolNameAPI = () => {
    return postRequest('/schoolCode/getAllNoProvince');
};
// region TODO 获取生源所在地
export const obtainTheLocationOfStudentsAPI = param => postRequest('/province/EpStuSourceInfo/list/syszd', param);

// endregion

// region TODO 获取学历
export const obtainADiplomaAPI = param => postRequest('/province/EpStuSourceInfo/list/education', param);

// endregion
//删除一条表信息
export const delByIdAPI = params => {
    return postRequest('/province/EpStuSourceInfo/delById', params);
};
//excel批量导入生源信息
export const addExcelAPI = params => {
    return postBodyRequest('/province/EpStuSourceInfo/addExcel', params);
};
//年份
export const queryTheYearDropDownBoxAPI = () => {
    return getRequest('/province/EpStuSourceInfo/queryTheYearDropDownBox');
};
//批量删除
export const delByIdsAPI = params => {
    return postRequest('/province/EpStuSourceInfo/delByIds', params);
};
//展位自动分配
export const autoAllocationAPI = params => {
    return postRequest('/school/doubleElection/auto', params);
};
//双选会修改
export const modifyTheDualMeetingAPI = params => {
    return postRequest('/school/doubleElection/edit', params);
};
//双选会企业审核列表表
export const doubleElectionAuditEnterpriseAPI = params => {
    return postRequest('/school/doubleElection/auditEnterprise', params);
};
//双选会企业资质审核
export const doubleSelectPassAPI = params => {
    return postRequest('/school/doubleElection/pass', params);
};
//拉黑企业
export const blockAPI = params => {
    return postRequest('/enterpriseAuditDetails/isBlacking', params);
};
//下载
export const downloadTheFileAPI = params => {
    return exportPost('/school/doubleElection/export', params);
};


export const exportAuditEntData = params => {
    return exportPost('/school/doubleElection/exportAuditEnterprise', params);
};

// TODO 新导出
export const exportAuditEntDataNew = params => {
    return exportPost('/school/doubleElection/export', params);
};
// TODO 导出可选字段
export const classParamListNewList = params => {
    return postRequest('/school/doubleElection/classParamList', params);
};